$(document).ready(function() {

	// Allow <TAB> characters in the markup fields
	$('textarea.markup').keydown(function(ev) {
		if(ev.keyCode==9) {
			if(typeof(this.selectionStart)!='undefined') {
				var v = $(this).val();
				var ss = this.selectionStart;
				$(this).val(v.substr(0, ss)+"\t"+v.substr(ss));
				this.setSelectionRange(ss+1, ss+1);
			}
			return false;
		}
	});
});